package com.yang.web;

import java.sql.SQLException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yang.service.LocationService;
import com.yang.vo.LocationInfoVO;

@Controller
@RequestMapping("/location")
public class LocationController {

	private LocationService service;
	
	public void insertLocation(HttpServletRequest request, HttpServletResponse response,
			LocationInfoVO vo){
		
		try {
			service.insertLocation(vo);
		} catch (SQLException e) {
			
			e.printStackTrace();
		}
	}
}
